package org.mifos.boss.domainmodel;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class ClientFamilyDetails {
	
//	private String tempCustId;
	private int familyDetailId;
	private short relationship;
	private short gender;
	private short livingsatus;
	private Date dateOfBirth;
	private String displayName;
	
	private ClientCreationalData clientCreationalData;
	
//	@Id
//	public String getTempCustId() {
//		return tempCustId;
//	}
//	public void setTempCustId(String tempCustId) {
//		this.tempCustId = tempCustId;
//	}
	public short getRelationship() {
		return relationship;
	}
	public void setRelationship(short relationship) {
		this.relationship = relationship;
	}
	public short getGender() {
		return gender;
	}
	public void setGender(short gender) {
		this.gender = gender;
	}
	public short getLivingsatus() {
		return livingsatus;
	}
	public void setLivingsatus(short livingsatus) {
		this.livingsatus = livingsatus;
	}
	public Date getDateOfBirth() {
		return dateOfBirth;
	}
	public void setDateOfBirth(Date dateOfBirth) {
		this.dateOfBirth = dateOfBirth;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	
	@ManyToOne
	@JoinColumn(name="TEMP_CUST_ID")
	public ClientCreationalData getClientCreationalData() {
		return clientCreationalData;
	}
	public void setClientCreationalData(ClientCreationalData clientCreationalData) {
		this.clientCreationalData = clientCreationalData;
	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getFamilyDetailId() {
		return familyDetailId;
	}
	public void setFamilyDetailId(int familyDetailId) {
		this.familyDetailId = familyDetailId;
	}
	
	
}
